<!DOCTYPE html>
<html>
<head>
    <title><%= title %></title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
    <link rel="stylesheet" href="/stylesheets/bootstrap.min.css"/>
    <link rel="stylesheet" href="/stylesheets/bootstrap-responsive.min.css"/>
    <link rel="stylesheet" href="/stylesheets/bootstrap-agin.css"/>

    <script type="text/javascript" src="/javascripts/jquery.js"></script>
    <script type="text/javascript" src="/javascripts/bootstrap.js"></script>
</head>
<body>

<div class="navbar navbar-inverse navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <a class="brand" href="/">报名管理</a>
            <div class="nav-collapse collapse">
                <ul class="nav">
                    <li class="active"><a href="/">首页</a></li>
                    <% if (!user) { %>
                    <li><a href="/login">登入</a></li>
                    <li><a href="/reg">注册</a></li>
                    <% }else { %>
                    <li><a href="/logout">登出</a></li>
                    <li><a href="/add">活动添加</a></li>
                    <% } %>
                </ul>
            </div><!--/.nav-collapse -->
        </div>
    </div>
</div>

<% if (success) { %>
    <div class="container">
        <div class="form-actions">
            <div><%= success %></div>
        </div>
    </div>
<% } %>
<% if (error) { %>
<div class="container">
    <div class="form-actions">
        <div><%= error %></div>
    </div>
</div>
<% } %>